<?php
$this->breadcrumbs = array(
    'Posts Control',
);
?>
<div>
    <div class="pull-right">
        <?php
        $form = $this->beginWidget('CActiveForm', array(
            'id' => 'work-form',
            'enableAjaxValidation' => false,
            'enableClientValidation' => true,
            'htmlOptions' => array(
                'class' => 'form-horizontal',
                'style'=> "margin:0;"
            ),
        ));?>
            <label style="margin-top: 3px;">
                <input type="text" class="span4" aria-controls="sample-table-2" placeholder="Search yard sales">
                <input type="submit" value="Search" class="span2 btn btn-success btn-small">
            </label>
        <?php $this->endWidget()?>
    </div>
</div>

<div class="row-fluid">
    <div class="table-header">Posts Control</div>
    <table id="sample-table" class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
                <th>Cover Photo</th>
                <th> Name </th>
                <th class="hidden-phone"> Title </th>
                <th class="hidden-phone"> Description </th>
                <th class="hidden-phone"> Start Date</th>
                <th class="hidden-phone"> End Date</th>
                <th class="hidden-phone"> Time</th>
                <th class="hidden-phone"> Address</th>
                <th class="hidden-phone"> Created Date </th>
                <th class="hidden-phone"> Updated Date
                <th></th>
            </tr>
        </thead>

        <tbody>
            <?php
            $this->widget('bootstrap.widgets.TbListView', array(
                'dataProvider' => $data->search(),
                'itemView' => '_views',
                'itemsTagName' => 'ul',
                'template' => '{items}<div class="clearfix"></div><div class="span4 col-centered">{pager}</div>',
                'itemsCssClass' => 'ace-thumbnails',
            ));
            ?> 
        </tbody>
    </table>
</div>